﻿using System;
using Castle.Windsor;
namespace Wolfy.NetDisk.Infrastructure
{
    public static class IoC
    {
        private static readonly WindsorContainer theContainer = new WindsorContainer();
        public static IWindsorContainer Container
        {
            get { return theContainer; }
        }
        public static T Resolve<T>()
        {
            return theContainer.Resolve<T>();
        }
        public static object Resolve(Type type)
        {
            return theContainer.Resolve(type);
        }
    }
}
